package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问卷业务对象 t_questionnaire
 *
 * @author ruoyi
 * @date 2023-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TQuestionnaireBo extends BaseEntity {

    /**
     * 调查问卷表
     */
    @NotNull(message = "调查问卷表不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 问卷名称
     */
    @NotBlank(message = "问卷名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 问卷年份
     */
//    @NotNull(message = "问卷年份不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long year;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 截止时间
     */
    @NotNull(message = "截止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 教职工每人票数
     */
    @NotNull(message = "教职工每人票数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long voteNum;


}
